//
//  KLSoundplay.h
//  KLSoundplayDemo
//
//  Created by Coollang on 17/4/19.
//  Copyright © 2017年 Coollang-YF. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KLSoundplay : NSObject

+ (instancetype)shareSpeedSoundplayer;
// 播报速度,默认允许后台播放
- (void)soundTheSpeed:(NSUInteger)speed;
// 播报速度
- (void)soundTheSpeed:(NSUInteger)speed allowBackgroundPlay:(BOOL)allowBackplay;
// 控制全局的声音开关，默认开启 -- 注：也可以自己根据数据库自定设置
@property (nonatomic, assign) BOOL shouldSound;



// 播放指定路径的音频
- (void)soundAutioWithPath:(NSURL *)voicePath allowBackgroundPlay:(BOOL)allowBackplay completionHandler:(void(^)(BOOL didFinish))completionHandler;

@end
